//
//  NotificationsManager.m
//  mUBB
//
//  Created by Cosmin Stirbu on 5/11/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import "NotificationsManager.h"
#import "WSManager+Notifications.h"

@implementation NotificationsManager

// Singleton
+ (NotificationsManager *)instance {
    static NotificationsManager *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[NotificationsManager alloc] init];
        // Do any other initialisation stuff here
    });
    return instance;
}

- (Ticket *)subscribeForNotificationsForCourse:(Course *)course delegate:(id<NotificationsProtocol>)delegate {
    return [[WSManager instance] subscribeForNotificationsForCourse:course delegate:delegate];
}

- (Ticket *)unsubscribeForNotificationsForCourse:(Course *)course delegate:(id<NotificationsProtocol>)delegate {
    return [[WSManager instance] unsubscribeForNotificationsForCourse:course delegate:delegate];
}



@end
